package com.qm.chp04ifwhilefor;

import java.util.Scanner;

/**
 * @author wb
 * @date 2023-06-10 14:51
 * @description: if,if-else-,嵌套if,switch
 */
public class Myif2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();

        if (a > b) {
            if (a > c)
                System.out.println(a);
            else
                System.out.println(c);
        } else {
            if (b > c)
                System.out.println(b);
            else
                System.out.println(c);
        }

        // 嵌套

        Scanner sc = new Scanner(System.in);
        int s = sc.nextInt();
 
        if (s >= 85) {
            System.out.println("A");
        } else if (s >= 70) {
            System.out.println("B");
        } else if (s >= 60) {
            System.out.println("C");
        } else {
            System.out.println("D");
        }

    }
}
